package com.xiaomo.gitee.datamanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @TableName classinfo
 */
@TableName(value ="classinfo")
@Data
@Schema(description = "大类别信息对象",name = "大类别信息模型",title = "大类别信息模型")
public class ClassInfo implements Serializable {

    @Schema(
            hidden = true
    )
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @Schema(
            title = "name",
            description = "大类别名称",
            format = "string",
            example = "大类别名称",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String name;

    @Serial
    @Hidden
    private static final long serialVersionUID = 1L;
}